<link rel="stylesheet" href="/css/user.css">
<script type="text/javascript"> 
    $(document).ready(function() {

    });
</script>

<?php   
    echo $this->render('header.phtml'); 
    echo $this->render('user/subnav.phtml');
?>
<section id="main" class="bank">
    <div class="title">Bank details</div>
<?php 
    if (!empty($this->error)) echo '<div class=error>'.$this->error.'</div>';
    if (!empty($this->message)) echo '<div class="flash">'.$this->message.'</div>';
?>
    <p class="tr"><a class="button" href="/user/add-bank"><img src="../img/fugue/plus-circle.png">Add New</a></p>
<?php
    if ($this->bank && count($this->bank) > 0)
        foreach($this->bank as $a) {   ?>
            <div class="bank-line">
                <span class="type"><?= Application_Model_User_Bank::$types[$a->source] ?></span>
                <span class="bank"><?= $a->bank ?>, <?= $a->swift ?>, <?= $a->iban ?></span>
                <span class="delete"><a href="/user/del-bank/id/<?= $a->id ?>">Delete</a></span>
                <span class="edit"><a href="/user/add-bank/id/<?= $a->id ?>">Edit</a></span>
                <span class="note"><?= $a->note ?></span>
            </div>        
<?php   }   ?>
    
</section>
<?php echo $this->render('footer.phtml'); ?>